<% %>
<div class='extra-nav'>
  <ul>
    <li <%="class=active" if controller.action_name == 'list' or controller.action_name == 'destroy' or controller.action_name =='create'%>>
	    <%=link_to_remote 'Active Projects'.t + " (" + session[:user].active_projects.size.to_s + ")",
	                      :update=>'timelogs',
	                      :loading =>"Element.show('indicator-tab')",
	                      :complete=>"Element.hide('indicator-tab')",
						  :url=>{:controller=>'time_logs',:action=>'list'}
	    %></li>
    <li <%="class=active" if controller.action_name == 'show_completed_projects'%>>
	    <%=link_to_remote 'Completed Projects'.t + " (" + session[:user].completed_projects.size.to_s + ")",
	                      :update=>'timelogs',
	                      :loading =>"Element.show('indicator-tab')",
	                      :complete=>"Element.hide('indicator-tab')",
						  :url=>{:controller=>'time_logs',:action=>'show_completed_projects'}
	    %></li>
    <li <%="class=active" if controller.action_name == 'show_all_projects'%>>
        <%=link_to_remote 'All Projects'.t + " (" + session[:user].projects.size.to_s + ")",
	                      :update=>'timelogs',
	                      :loading =>"Element.show('indicator-tab')",
	                      :complete=>"Element.hide('indicator-tab')",
						  :url=>{:controller=>'time_logs',:action=>'show_all_projects'}
	    %></li>
  </ul>
</div>
